python counting occurrences value in nested dictionary

welcome to shbcf.ru